package cz.cvut.liy.data;

import java.io.Serializable;

public class Question implements Serializable{

	private String question;
	private String answer;
	private int answersCount;
	private int goodAnswers;
	
	
	public Question(String question, String answer) {
		this.question = question;
		this.answer = answer;
		this.answersCount = 0;
		this.goodAnswers = 0;
	}
	
	
	public String getQuestion() {
		return question;
	}
	
	public String getAnswer() {
		return answer;
	}
	
	public void answerOnQuestion(boolean good){
		++this.answersCount;
		if (good){
			++this.goodAnswers;
		}
		return;
	}
	
	public int getGoodAnswerCount(){
		return this.goodAnswers;
	}
	
	public int getAnswerCount(){
		return this.answersCount;
	}
}
